package com.example.demo1.demo;

import com.example.demo1.dao.TestDao;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestDemo {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext app=
                new ClassPathXmlApplicationContext("applicationContext.xml");
        TestDao testDao=(TestDao) app.getBean("testDao");
        testDao.test();
    }
}
